<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			function Person(name,age){//私有
				this.name=name;
				this.age=age;
			}
			
			Person.prototype.job="程序员"; //公有
			Person.prototype.show=function(){//公有
				console.log("展示");
			}
			
			Person.num=100;//静态属性
			Person.getNum=fnction(){//静态方法
				console.log("num:100");
			}
			
			let p=new Person("lili",18);
		</script>
	</body>
</html>
